package com.omega.framework.common.util.json;

public class Test {

    public static void main(String[] args) {
        Person person = JsonUtils.json2ObjectData("{\"age\":\"11\",\"name\":\"lv\",\"sex\":\"1\"}",Person.class);
        System.out.println(JsonUtils.objectData2json(person));
    }

}
class Person{
    private String age;
    private String name;
    private String sex;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
